import request from '@/utils/request'

// 查询指令发送列表
export function listDeviceInstruction(data) {
  return request({
    url: '/deviceInstruction/listDeviceInstruction',
    method: 'post',
      data: data
  })
}

// 查询指令发送详细
export function getDeviceInstruction(id) {
  return request({
    url: '/deviceInstruction/getDeviceInstructionById?id=' + id,
    method: 'get'
  })
}

// 新增指令发送
export function addDeviceInstruction(data) {
  return request({
    url: '/deviceInstruction/addDeviceInstruction',
    method: 'post',
    data: data
  })
}

// 修改指令发送
export function updateDeviceInstruction(data) {
  return request({
    url: '/deviceInstruction/editDeviceInstruction',
    method: 'post',
    data: data
  })
}

// 删除指令发送
export function delDeviceInstruction(id) {
  return request({
    url: '/deviceInstruction/delDeviceInstruction?ids=' + id,
    method: 'delete'
  })
}
